package com.zoshine.zzg.service;

import com.zoshine.zzg.dao.FamilyMemberOrgDao;
import com.zoshine.zzg.pojo.FamilyMemberOrg;
import com.zoshine.zzg.pojo.Organization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 贾俊峰
 * @time 2017/8/5 14:41
 */
@Service
@Transactional
public class FamilyMemberOrgService{
    private FamilyMemberOrgDao familyMemberOrgDao;
    @Autowired
    public void setFamilyMemberOrgDao(FamilyMemberOrgDao familyMemberOrgDao) {
        this.familyMemberOrgDao = familyMemberOrgDao;
    }

    public List<FamilyMemberOrg> listOrg(Organization organization){
        List<FamilyMemberOrg> familyMemberOrgs = familyMemberOrgDao.selectOrgList(organization);
        return familyMemberOrgs;
    }
}
